package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
@TableName("ve_oa_car_shiyong")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class VeOaCarShiYongEntity {
    /**主键id*/
    @Excel(name = "ID",width = 15)
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @Excel(name = "车辆Id",width = 15)
    @ApiModelProperty(value = "车辆id")
    @TableField(value = "car_id")
    private Long carId;

    @Excel(name = "车辆名称",width = 15)
    @ApiModelProperty(value = "车辆名称")
    @TableField(value = "car_name")
    private String carName;

    @Excel(name = "司机",width = 15)
    @ApiModelProperty(value = "司机")
    @TableField(value = "driver_user")
    private String driverUser;

    @Excel(name = "用车人",width = 15)
    @ApiModelProperty(value = "用车人")
    @TableField(value = "yongche_user")
    private String yongcheUser;

    @Excel(name = "用车部门",width = 15)
    @ApiModelProperty(value = "用车部门")
    @TableField(value = "yongche_dep")
    private String yongcheDep;

    @Excel(name = "用车开始时间",width = 15)
    @ApiModelProperty(value = "用车开始时间")
    @TableField(value = "start_time")
    private Date startTime;

    @Excel(name = "用车结束时间",width = 15)
    @ApiModelProperty(value = "用车结束时间")
    @TableField(value = "end_time")
    private Date endTime;

    @Excel(name = "目的地",width = 15)
    @ApiModelProperty(value = "目的地")
    @TableField(value = "destination")
    private String destination;

    @Excel(name = "出发前里程表数",width = 15)
    @ApiModelProperty(value = "出发前里程表数")
    @TableField(value = "chufa_lichengshu")
    private Double chufalichengshu;

    @Excel(name = "到达里程表数",width = 15)
    @ApiModelProperty(value = "到达里程表数")
    @TableField(value = "daoda_lichengshu")
    private Double daodaLichengshu;

    @Excel(name = "合计里程数",width = 15)
    @ApiModelProperty(value = "合计里程")
    @TableField(value = "heji_lichengshu")
    private Double hejiLichengshu;

    @Excel(name = "油耗数",width = 15)
    @ApiModelProperty(value = "油耗数")
    @TableField(value = "youhaoshu")
    private Double youhaoshu;

    @Excel(name = "调度人",width = 15)
    @ApiModelProperty(value = "调度人")
    @TableField(value = "diaodu_user")
    private String diaoduUser;

    @Excel(name = "用车详细事由",width = 15)
    @ApiModelProperty(value = "用车事由")
    @TableField(value = "shiyong")
    private String shiYong;

    @Excel(name = "备注说明",width = 15)
    @ApiModelProperty(value = "备注说明")
    @TableField(value = "back_info")
    private String backInfo;

    @ApiModelProperty(value = "录入人id")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "录入人名称")
    @TableField(value = "create_name")
    private String createName;

    @ApiModelProperty(value = "录入时间")
    @TableField(value = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改人id")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "修改人名称")
    @TableField(value = "update_name")
    private String updateName;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time")
    private Date updateTime;

    /*删除标识*/
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    private Integer isDeleted;

    /*终端ID*/
    @ApiModelProperty(value = "终端ID")
    @TableField(value = "terminalId")
    private Long terminalId;

}
